arrange the routes