adjusts to the controller