profit optimizes the plan