renamed nextAncestor to supertype