distribution optimizing