having the correct restrictions for the routes