implemented defect density