calculate scores for the first iteration