simplying route logic