anneal.cpp modified