removing throw in controller