rest of switch