started grouping lines (unfinished)