refactored SSE