added totalscore