corrected syntax error in 'route' function