add switch by dict