a couple other ideas for how to do the switch