minimizing the controller