removed unneeded code in controller