commented out expandToBoundary