refactoring score model