changed sum_sq to sum_squares