diff --git a/src/Dam_ID_analysis.nf b/src/Dam_ID_analysis.nf
index 72c84045cc79c7227bced0de9b55ae2fc4774c5c..6ef040e63aeb8d1c1d41913526efa8b50b9dcae1 100644
--- a/src/Dam_ID_analysis.nf
+++ b/src/Dam_ID_analysis.nf
@@ -41,7 +41,7 @@ workflow {
     //mapping
     index_fasta(reads)
     mapping_fastq(index_fasta.out.out.index.collect(), 
-                  reads)
+                  genome)
 }
 
 workflow.onComplete {