change router logic