find the common ancestor without parent field