formatting of contig retreival tool