working on HMM pipeline