quality control processing