clean up geneated structure