trimming the score file