real-time quality control