the line code wa moved to the controller