needed to filter out most specific types where the type is not in a class group