Update switch.c