correct code for routes