diff --git a/nextflow.config b/nextflow.config
index da9f744780ce4075ada5b9111a6677d56d4132c4..08ca59177de7c2d1e14bcd0c4c932a521f3c1603 100644
--- a/nextflow.config
+++ b/nextflow.config
@@ -1,3 +1,8 @@
 process.executor='slurm'
 process.queue='super'
-process.clusterOptions = '--hold'
\ No newline at end of file
+process.clusterOptions = '--hold'
+trace.enabled = true
+trace.file = 'pipeline_trace.txt'
+trace.field = 'task_id,native_id,process,name,status,exit,submit,start,complete,duration,realtime'
+report.enable = true
+report.file= 'report.html'
\ No newline at end of file
diff --git a/workflow/main.nf b/workflow/main.nf
index 3b3031e587e86511a3bc5781f2dc80b956d06421..dee449262a65c4d01cbae35e46fea916939af4d6 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -227,7 +227,7 @@ process gatkbam {
   publishDir "$params.output", mode: 'copy'
 
   input:
-  set subjid,pair_id, file(rbam) from deduped2
+  set pair_id, file(rbam) from deduped2
 
   output:
   set file("${pair_id}.final.bam"),file("${pair_id}.final.bai") into gatkbam