correctly identify anonymous classes