added sumsquare