refactor letter result for the new REST response format