update hmm