updated hmf script and get_hmf labelling