clear a structure before first use