update _get_non_orphan_parents to be just treverse the parents upward