defect tracking in production lines