rotation and scaling done