regroup lines