In another aspect, a laser or other means can be used to remove an area of a mask around a defect, and then mask structures, either the intended design structures or alternate structures that produce the same aerial image, can be constructed using charged particle beam deposition and etching.