fix partially root finding