defect gen