add optimalSolution to all classes modifiers