update: computing SSE