removed unused code from root finder