diff --git a/modules/local/hicpro/get_valid_interaction.nf b/modules/local/hicpro/get_valid_interaction.nf
index 4942eacaff836830d34ae6d1f2b6589fb9bee789..399a9ec7319f72c5e6a953ce1c6d39883d577462 100644
--- a/modules/local/hicpro/get_valid_interaction.nf
+++ b/modules/local/hicpro/get_valid_interaction.nf
@@ -29,8 +29,6 @@ process GET_VALID_INTERACTION {
     --all \\
     ${args}
 
-  sort -k2,2V -k3,3n -k5,5V -k6,6n -o ${bam.baseName}.validPairs ${bam.baseName}.validPairs
-
   cat <<-END_VERSIONS > versions.yml
   "${task.process}":
     python: \$(echo \$(python --version 2>&1) | sed 's/Python //')
diff --git a/modules/local/hicpro/get_valid_interaction_dnase.nf b/modules/local/hicpro/get_valid_interaction_dnase.nf
index f34433b3576cd4b44e9f203fde26dc50fb274044..dd5b061370c8201149a336e0195e3a429a6ff789 100644
--- a/modules/local/hicpro/get_valid_interaction_dnase.nf
+++ b/modules/local/hicpro/get_valid_interaction_dnase.nf
@@ -22,8 +22,6 @@ process GET_VALID_INTERACTION_DNASE {
     -r ${bam} \\
     ${args}
 
-  sort -k2,2V -k3,3n -k5,5V -k6,6n -o ${bam.baseName}.validPairs ${bam.baseName}.validPairs
-
   cat <<-END_VERSIONS > versions.yml
   "${task.process}":
     python: \$(echo \$(python --version 2>&1) | sed 's/Python //')
diff --git a/modules/local/hicpro/trim_reads.nf b/modules/local/hicpro/trim_reads.nf
index b54811f1368c5ba69f8b7aa38985da478eb28d3b..89109afebb9451ca3fde29278fb639442ce610c7 100644
--- a/modules/local/hicpro/trim_reads.nf
+++ b/modules/local/hicpro/trim_reads.nf
@@ -26,7 +26,7 @@ process TRIM_READS {
 
   cat <<-END_VERSIONS > versions.yml
   "${task.process}":
-      python: \$(echo \$(python --version 2>&1) | sed 's/^Python//; s/ .*\$//')
+      gzip: \$(echo \$(gzip --version 2>&1) | head -1 | cut -d" " -f2)
   END_VERSIONS
   """
 }