diff --git a/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C b/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C
index 58dd20f939cc6386ec7227051e3f0baaae8dd1f9..81c9736306f8f1917f291fa8232ff57678ae02d4 100644
--- a/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C
+++ b/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C
@@ -104,11 +104,11 @@ void get_LookUp_Values() {
 	ofs << setprecision(5) << lookup_value[ip] << fixed << ",";
       }
      
-      else if (bin_count >16 && bin_count < 274) {
+      else if (bin_count >16 && bin_count <= 274) {
 	ofs << setprecision(5) << lookup_value[ip] << ((bin_count+1) % 20 ? "," : "\n") << fixed; 
       }
       else {
-	ofs << setprecision(5) << lookup_value[ip] << fixed << endl;	  
+	ofs  << setprecision(5) << lookup_value[ip] <<  fixed << endl;	  
       }
      
     }
diff --git a/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C b/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C
index 74a26cb69a6d7f6a09aaf9a0c0bf9347e68f965b..8feed0310d38519ed9cb300df5855aa05d366e98 100644
--- a/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C
+++ b/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C
@@ -116,7 +116,7 @@ void get_pdc_time_histo_tzero_corrected_v2()
   TFile *f = new TFile(file_name, "READ");
 
   //create new file
-  TFile *g = new TFile(Form("shms_tzero_corr_histo.root", run_NUM), "RECREATE"); // create new file to store histo
+  TFile *g = new TFile(Form("../root_files/"+run+"/shms_tzero_corr_histo.root", run_NUM), "RECREATE"); // create new file to store histo
 
   f->cd();