switch poles with z/x