merge iterative: better solution

Signed-off-by: xbz <xbz.o3sig@gmail.com>