fixed the get_root_helper()