modify sum