-update route logic