pulled out Quality Control Reporting to separate function