quant-1 add logical.