diff --git a/host/scan_threshold.py b/host/scan_threshold.py
index <HASH>..<HASH> 100644
--- a/host/scan_threshold.py
+++ b/host/scan_threshold.py
@@ -35,7 +35,7 @@ class ThresholdScan(ScanBase):
                 raw_data_file.append(self.readout.data, scan_parameters={scan_parameter:scan_paramter_value})

                 

     def analyze(self):

-        with AnalyzeRawData(input_file = scan.scan_data_filename+".h5", output_file = output_file) as analyze_raw_data:

+        with AnalyzeRawData(input_file = scan.scan_data_filename+".h5", output_file = self.scan_data_filename+"_interpreted.h5") as analyze_raw_data:

             analyze_raw_data.create_threshold_hists = True

             analyze_raw_data.interpreter.set_warning_output(False)  # so far the data structure in a threshold scan was always bad, too many warnings given

             analyze_raw_data.interpret_word_table(FEI4B = scan.register.fei4b)
BUG: data file name given now