added mode='r' in h5.File()