move this logic to the controller. remove the method.