refactored append score