silly error in maincontroller