distribution optimization