fixed scoring functions.
DJT