support rotate operation.