store data into hdf5 file