x y swap for stitching