clean up structure