edit HMM