modified simulated annealing, now closer to truth