in case parent.parent_ids is nil(root)