fixed some of the scoring function initialization