change the position of switch