remap class types in alloc