correction mainCtrl