refactor SSE format with typeClass