start to build hmm