simpler merge method