multiple small changes to basinhopping