working setOperationType