modifications to midpoint displacement section