started working on the controller