write sections
removed unused