Merging in iterative process