linking inputs to calcRoute