simplify score calculation