removed old unused HMM function