fix viterbi variable names