rename type to class_name