added the hmm