remove write only variables