simplified get_score function