update self sum