wrote walker for midpoints