update the router