minor update to getBestBFrom loop