merge scale and rotate