add check to make sure if the route exists