write structure