move text to proper sections