added parallel merging