remove old midpoint method