fixed the bug, but the markov chain is still pretty shitty on its own