removed bisection function