Update best_script.pl

optimize