modify Rotate to auto