diff --git a/macro/beamtime/mcbm2020/unpack_tsa_mcbm.C b/macro/beamtime/mcbm2020/unpack_tsa_mcbm.C
index b598946804b09f21786e8f971606f1e5efa91952..5e13480e30fc6fd5f597b1b1be58e9973fbe4d5c 100644
--- a/macro/beamtime/mcbm2020/unpack_tsa_mcbm.C
+++ b/macro/beamtime/mcbm2020/unpack_tsa_mcbm.C
@@ -533,7 +533,7 @@ void unpack_tsa_mcbm(TString inFile  = "",
       std::cout << "MUCH: Feb by feb time offset correction......" << std::endl;
       UInt_t uRun, uNx;
       Double_t offset;
-      ifstream infile_off("../mcbm2020/parameters/time_offset_much.txt");
+      ifstream infile_off(paramDir + "/parameters/time_offset_much.txt");
       if (!infile_off) {
         std::cout << "can not open time offset MUCH parameter List" << std::endl;
         return kFALSE;
@@ -546,7 +546,7 @@ void unpack_tsa_mcbm(TString inFile  = "",
       infile_off.close();
       std::cout << "masking noisy channels......" << std::endl;
       UInt_t uChan = 0;
-      ifstream infile_noise("../mcbm2020/parameters/much_noisy_channel_list.txt");
+      ifstream infile_noise(paramDir + "parameters/much_noisy_channel_list.txt");
       if (!infile_noise) {
         std::cout << "can not open MUCH noisy channel List" << std::endl;
         return kFALSE;