mh, annealing functions