add scoreboard algorithm