Update sum and products