hmm tuning