refactoring travelRoute