implement most of updataEmitProb