operation to set flags