scan hmm