optimize scoreboard