updated sumsq to sum_sq