modify while merge