added sum of squares objective