use functions for routesn