changed FieldMap to class.