scaled HMM working