use field_size instead of fields.size() to speed up data loading