removing code and referencing to appendix for hmm