merge in memory