small HMM changed