revise total_score calculation