added ScoreTask function