new version of HMM up