rename type to class internally