moved tmr_hdf to constants