updated switch.cpp