changing logic in QualityControl