x and y switches