add switch.