added boundary cleanup utility