change routing logic