diff --git a/tsg_util/headerForm.m b/tsg_util/headerForm.m
index c46b6ad8dae71b4aacf42f3c3b87ebf9fb3dc33a..4b99fd964aa7a36a8693da9b6fa26ab0c8e789c8 100644
--- a/tsg_util/headerForm.m
+++ b/tsg_util/headerForm.m
@@ -78,7 +78,7 @@ platform_info = tsg_nc('tsg_platform.csv');
 % ---------------------------------
 hHeaderFig = figure(...
   'BackingStore','off',...
-  'Name', 'TSG GLOBAL ATTRIBUTES', ...
+  'Name', 'TSG GLOBAL ATTRIBUTES AND VARIABLES', ...
   'NumberTitle', 'off', ...
   'Resize', 'on', ...
   'Menubar','none', ...
diff --git a/tsg_util/preferencesForm.m b/tsg_util/preferencesForm.m
index 5cb8a66116c45950e46ac4003e9a83a8d7c175dd..b9370e6fec28bb176860af98ada6fa7d4f7c0b1e 100644
--- a/tsg_util/preferencesForm.m
+++ b/tsg_util/preferencesForm.m
@@ -236,22 +236,27 @@ uiwait(hPreferencesFig);
     % Save tsg structure
     % ------------------
     setappdata(hTsgGUI, 'tsg_data', tsg);
-    
+
     % get the corresponding string from uicontrol using guihandles
     % and save value in tsg.preferences struct
     % ------------------------------------------------------------
     tsg.preference.levitus_value = ...
-                      get(prefs.PREFERENCES_LEVITUS_VALUE, 'value');
+      get(prefs.PREFERENCES_LEVITUS_VALUE, 'value');
     tsg.preference.levitus_depth_value = ...
-                      get(prefs.PREFERENCES_LEVITUS_DEPTH, 'value');
+      get(prefs.PREFERENCES_LEVITUS_DEPTH, 'value');
     tsg.preference.plot_connected_value = ...
-                      get(prefs.PREFERENCES_PLOT_CONNECTED_LINE, 'value');
+      get(prefs.PREFERENCES_PLOT_CONNECTED_LINE, 'value');
     tsg.preference.coeff_type_value = ...
-                      get(prefs.PREFERENCES_COEFF_TYPE, 'value');
-    
+      get(prefs.PREFERENCES_COEFF_TYPE, 'value');
+
     % Save tsg structure
     % ------------------
     setappdata(hTsgGUI, 'tsg_data', tsg);
+    
+    % fill tsg calibration variables
+    % ------------------------------
+    updateTsgStructWithCalCoeff(hTsgGUI);
+
 
     % close windows (replace call to uiresume(hHeaderFig))
     % ----------------------------------------------------
@@ -264,7 +269,7 @@ uiwait(hPreferencesFig);
     % return with no error code (true)
     % --------------------------------
     error = 1;
-    
+
     return
 
   end
diff --git a/tsg_util/tsg_preferences.m b/tsg_util/tsg_preferences.m
index e1fbd8774b6296091cb1dc1fc4896438b4f567c0..8d3e6957e05d1e4ea8ed9eba9147860e24aaaeb9 100644
--- a/tsg_util/tsg_preferences.m
+++ b/tsg_util/tsg_preferences.m
@@ -138,7 +138,7 @@ end
     preference.ship_speed            = 1;
     preference.plot_connected_string = {'none', '-', '--', ':', '-.'};
     preference.plot_connected_value  = 1;  % 0, line not connected
-    preference.coeff_type_string     = {'a,b,c,d,f0', 'g,h,i,k,m'};
+    preference.coeff_type_string     = {'use A-D', 'use G-J'};
     preference.coeff_type_value      = 2;
 
     % save preference struct to 'prefdir.mat' file
diff --git a/tsg_util/updateTsgStruct.m b/tsg_util/updateTsgStruct.m
index 320d3d19705dfe868f0af7cbccfdff15396a60b4..9544a1d70f66268ba20717e2671b084ac51c2357 100644
--- a/tsg_util/updateTsgStruct.m
+++ b/tsg_util/updateTsgStruct.m
@@ -86,30 +86,24 @@ for i = 1: length(names)
   end
 end
 
-% initialise empty coefficients variables with type defined with preference
-% -------------------------------------------------------------------------
-coeff_type = {{'DATE','A','B','C','D','F0',''},{'DATE','A','B','C','D','M','CPCOR'},...
-  {'DATE','A','B','C','D','F0',''}; ...
-  {'DATE','G','H','I','J','F0',''},{'DATE','G','H','I','J','CTCOR','CPCOR'},...
-  {'DATE','G','H','I','J','F0',''}};
-lin_type = {'offset','slope'};
-lin_val  = [0,1];
-
-var = {'SSJT_CALCOEF', 'CNDC_CALCOEF', 'SSTP_CALCOEF'};
+% Save tsg structure
+% ------------------
+setappdata( hMainFig, 'tsg_data', tsg);
 
-pref = tsg.preference.coeff_type_value;
+% fill tsg calibration variables
+% ------------------------------
+updateTsgStructWithCalCoeff(hMainFig);
 
-for i = 1:numel(var)
-  if isempty(tsg.(var{i}))
-    for j = 1:tsg.dim.CALCOEF
-      tsg.(var{i})(j) = NaN;
-      tsg.([var{i} '_CONV']) = ...
-        [tsg.([var{i} '_CONV']); padding(coeff_type{pref,i}{j}, tsg.dim.COEF_CONV_SIZE)];
-    end
-  end
-end
+% Get the data from the application GUI
+% -------------------------------------
+tsg = getappdata( hMainFig, 'tsg_data');
 
+% Initialise  'variables_LINCOEF'
+% in tsg_initialisation now
+% -------------------------------
 var ={'SSJT_LINCOEF', 'CNDC_LINCOEF', 'SSTP_LINCOEF'};
+lin_type = {'offset','slope'};
+lin_val  = [0,1];
 
 for i = 1:numel(var)
   if isempty(tsg.(var{i}))
@@ -121,21 +115,6 @@ for i = 1:numel(var)
   end
 end
 
-% Initialise  'variables_LINCOEF'
-% in tsg_initialisation now
-% -------------------------------
-% if isempty(tsg.SSJT_LINCOEF)
-%   tsg.SSJT_LINCOEF(1) = 1;
-%   tsg.SSJT_LINCOEF(2) = 0;
-% end
-% if isempty(tsg.CNDC_LINCOEF)
-%   tsg.CNDC_LINCOEF(1) = 1;
-%   tsg.CNDC_LINCOEF(2) = 0;
-% end
-% if isempty(tsg.SSTP_LINCOEF)
-%   tsg.SSTP_LINCOEF(1) = 1;
-%   tsg.SSTP_LINCOEF(2) = 0;
-% end
 
 % Save tsg structure
 % ------------------
diff --git a/tsgqc.m b/tsgqc.m
index 8105d0e7cca3287d0d22b3eafd565ce02fbac76b..f29e85505bcf4d2e84619f02a946bf784a15b3c7 100644
--- a/tsgqc.m
+++ b/tsgqc.m
@@ -36,8 +36,8 @@ global NETCDF_FORMAT_VERSION
 % version number, may be used to initialize some files when it change
 % 0.90x -> 1.0RCx
 % -------------------------------------------------------------------
-VERSION = 0.9054;  % -> 1.0RC5
-CHAR_VERSION = '1.0RC5_4';
+VERSION = 0.9055;  % -> 1.0RC5
+CHAR_VERSION = '1.0RC5_5';
 
 % netcdf file version, see DATA FORMAT TSG document:
 % CORTSG_format_gosud_1.5.doc