implemented scaling_factor for hdf5 files