improved sim anealing logic