fix API response format