modifying final score calculation