added edit_hmm