eliminate unnecessary routes