Better approximation of diagonal-flip transformation and rotation transformation