record,
            ncbi_names_table,
            synonymy_table,
            authority_file,
            hacks,
            hacks_data_location,
            unresolvable_taxonomy_list,
            keeplist_taxonomy_list,
            taxa_mappings_list,
            tax_log_handle,
            tax_log_html_handle)

        # tn = name[0]
        an = name[1]

        an_flat = krbionames.flatten_organism_name(an, ' ')

        record.annotations['organism_old'] = record.annotations['organism']
        record.annotations['organism'] = an_flat
        record.annotations['source'] = an_flat

        record.description = record.description.replace(record.annotations['organism'], '')
        record.description = record.description.strip()

    krcl.show_cursor()
    #########

    krseqsearch.__tax_log_close(tax_log_handle)
    krseqsearch.__tax_log_html_close(tax_log_html_handle)

    krbioio.write_sequence_file(records, output_file, 'gb')