reverting hmm.cpp