SearchRoot() cleanup

removing unused code and variables that do not change