this should be removed and placed in the controllers themselves