add all grouping and text elements