Update sum_squared to sum_squares