before rerouting