improving route logic

just a small change for simplifying the routes