some final advancingBoundary optimizations