flip 2D Z