improved quality check mechanism