manage error in controller now