use get parents instead of get_ancestors