testing midpoint approx