add hmm model.