add hmm 's matrix