replaced a sum by x