add base sum-of-squares