So the midpoint calculation doesn't work