renamed route function to path