cleaning up the router