midpoint-check