forgot to declare $contigs_file