Difference at the weights function