completed merging lines