refactored get_field_names