made some changes to quality control