diff --git a/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m b/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m
index 17eb3faf37aec1e58c8b86b7476fa86cd548e5d0..6668273e72c2d5da2423c2d5fda94f49edff0a3f 100644
--- a/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m
+++ b/crpptbx/TCV_IMAS/tcv_get_ids_core_profiles.m
@@ -186,7 +186,11 @@ for it=1:length(ids_cores_profiles.time)
       .* dqdrhotor;
 end
 
-ids_cores_profiles.code.name = ['tcv_get_ids_core_profiles, within gdat, with shot= ' num2str(shot) '; varargin' varargin{:}];
+if nargin <= 2
+  ids_cores_profiles.code.name = ['tcv_get_ids_core_profiles, within gdat, with shot= ' num2str(shot) ];
+else
+  ids_cores_profiles.code.name = ['tcv_get_ids_core_profiles, within gdat, with shot= ' num2str(shot) '; varargin: ' varargin{:}];
+end
 ids_cores_profiles.code.output_flag = zeros(size(ids_cores_profiles.time));
 
 % make arrays not filled in empty: