fixed controller class