start merging lines