clean up structure editing