creating a router