use the right typeName.