A method and system for fracturing or mask data preparation or optical proximity correction or proximity effect correction or mask process correction is disclosed in which a set of shaped beam shots is determined that is capable of forming a pattern on a surface, where a plurality of shots in the same exposure pass overlap, and where the dose margin from the set of shots is calculated. A method for forming patterns on a surface is also disclosed.