final changes to best.R