changed ancestors from Type to object HashSet