modifying the controller