code formatting, subsections restructured