gave the switch method a better name