new computation of the mean loss