added user score calculation