able to compress contig and output results