add_genomes function