creating a merged version