almost done with metropolis hastings