substituted brent for bisect; removed orphan code