small change in PGM and HMM app