corrected score calculation