just before adding scoreboard