changes to branch hmm