refactoring: setting route does not require the route as parameter