add defect to defect table