Removing unnecessary loop from non-circular apertures