Specifically, after an initial mask inspection for defects has been performed, potential defects have been identified, and data such as phase, transmission, and/or reflectivity have been determined, the present invention can be used to simulate the wafer exposure.