add tentative function to output HDF5