method: move the method into the route