diff --git a/+PlotID/createLinkedHDF5.m b/+PlotID/createLinkedHDF5.m
index ab893d8106293e62a82b0aad4e45c3cc044e3ae0..528c354fdd95691851c2990beee8cfa27d4b6144 100644
--- a/+PlotID/createLinkedHDF5.m
+++ b/+PlotID/createLinkedHDF5.m
@@ -1,4 +1,4 @@
-function [status] = createLinkedHDF5(SourceFile,TargetPath,ID)
+function [status] = createLinkedHDF5(SourceFile,TargetPath)
 %createLinkedHDF5 creates a HDF file that references the Sourcefile
 %   TargetPath is the storage location, ID the foldername
 %   Status returns true if the function was successfull
@@ -12,21 +12,20 @@ end
 
 [~,filename,ext] = fileparts(SourceFile);
 
-% try
+try
     %old
     %fid = H5F.create(fullfile(TargetPath,ID,[ID,'_data.h5']));
     
-    fid = H5F.create(fullfile(TargetPath,ID,[filename,ext]));
+    fid = H5F.create(fullfile(TargetPath,[filename,ext]));
     %create External Link to Sourcefile in the Group linkToExternal
-    H5L.create_external(['..\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id);
-    %H5L.create_external(['..\data\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original
+    H5L.create_external(['..',SourceFile],'/',fid, SourceFile ,plist_id,plist_id);
+    %H5L.create_external(['..',filesep,'data',filesep,SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original
     H5F.close(fid);
-    disp([fullfile(TargetPath,ID,[filename,ext]),' created']);
+    disp([fullfile(TargetPath,[filename,ext]),' created']);
     status = 1;
-% catch
-%     warning('No linked HDF file was created');
-%     status = 0;
-% end
-
+catch
+    warning('No linked HDF file was created');
+    status = 0;
 end
 
+end