small change to QC_sample