started annealing function