this logic exists in the controller. you can dry it up