modified the data structure for scores to work