create methods in controllers