add defect class