refactor scores