merge output