optical quality control