mades changes to the controller to fix old test that didn't run