changing output to output the field names