got the midpoint finally