structure and writer