edited route functions