corrections to controller