routing with switch