Update Sum of squares