diff --git a/README.md b/README.md
index 570a628f204fbf417179f0199d43f76ccf95725d..71b5fbe50d31da0343ac6189b3b57da82caae753 100644
--- a/README.md
+++ b/README.md
@@ -84,10 +84,12 @@ in the parent directory. It will provide a <kbd>.root</kbd> file with a specific
 
 The output data is quite simple. In the resulting ASCII file, the expected ADC values for the first 100 temporal bins of the FADC traces (~2.5 us) are given for each injected particle. A simple awk script to produce a charge histogram could be: 
 ```bash
+cd ${LAGO_EASY}/sim
 for i in *.dat; do 
 	u=$(basename $i .dat)
 	echo $i
 	awk '{t[$1]+=$4}END{for (i in t) {print t[i] }}'  $i | sort -n | uniq -c | awk '{if ($2) {print $2,$1}}' > $u.hst
+done
 ```
 producing a file containing a two column file: <kbd>charge counts</kbd>.