monte carlo runs but there seems to be a bug in the accept-reject mechanism