made changes to the controller