fixed the calculation of the scoredata