diff --git a/macs2.wdl b/macs2.wdl
index 612e5d18908f3d885596be949df92bb3ba43b96f..1a02d7756a95c215a55a96c1d89bc86329677c40 100644
--- a/macs2.wdl
+++ b/macs2.wdl
@@ -12,13 +12,13 @@ task PeakCalling {
         ${preCommand}
         macs2 callpeak \
         --treatment ${sep = ' ' bamFiles} \
-        --outdir ${outDir} \
+        --outdir ${outDir} + "/macs2/" \
         --name ${sampleName} \
         ${true='--nomodel' false='' nomodel}
     }
 
     output {
-        File peakFile = outDir + "/" + sampleName + "/macs2/" + sampleName + "_peaks.narrowPeak"
+        File peakFile = outDir + "/macs2/" + sampleName + "_peaks.narrowPeak"
     }
 
     runtime {