use class name instead of extra field