fixed flow, layout, and formatting