working on final version of bisection path