Extracting boxes, getting SSE