fix bux in calculating sub-condition differences