diff --git a/src/faster_sampler.nf b/src/faster_sampler.nf
index 0801c026be8ccaf576228316cee258b175e74d6d..8b2f1dc5aec055f1187e74806cd762d372d9d4b9 100644
--- a/src/faster_sampler.nf
+++ b/src/faster_sampler.nf
@@ -2,10 +2,10 @@ nextflow.enable.dsl=2
 process sample_fasta {
   input:
   path fasta
-  publishDir "results/sampling/", mode: 'copy'
   
   output:
   path "sample.fasta", emit: fasta_sample
+  publishDir "results/sampling/", mode: 'copy'
 
   script:
 """