adding insertBestOptionFromHistory