remove write struct