revised numerics of HMM m-steps