_find_root rewritten