refactor of get_score by https://github.com/theverything