Quality assurance in manufacturing