added sum_squares