switching x and z