diff --git a/video_prediction_tools/data_preprocess/process_netCDF_v2.py b/video_prediction_tools/data_preprocess/process_netCDF_v2.py
index 6ac8c11824d4f7fd0c441155593d0a09459f2f7f..64e2acc3abd363d096d7a544976c46ffbe83c66e 100644
--- a/video_prediction_tools/data_preprocess/process_netCDF_v2.py
+++ b/video_prediction_tools/data_preprocess/process_netCDF_v2.py
@@ -45,7 +45,7 @@ class PreprocessNcToPkl():
        Process the necCDF files in the month_base folder, store the variables of the images into list, store temporal information to list and save them to pickle file 
        """
        if os.path.exists(self.target_file):
-         print(target_file," file exists in the directory ", self.target_dir)
+         print(self.target_file," file exists in the directory ", self.target_dir)
        else:
          print ("==========Processing files in directory {} =============== ".format(self.directory_to_process))
          self.get_images_list()