a method of manufacturing semiconductor devices in which scan data for a current layer of a wafer of a lot being manufactured is compared to previous scan data for previous lots that has been stored in a defect management system . the automatic defect classification system determines whether additional wafers need to be scanned in order to obtain accurate defect data for the production lot to determine whether the current lot should or should not be placed on hold .