moving the logic to the controller