init of hmm