group newlines stuff together