commit for switch