fix some typos, reduce size of score code