modified stream junction
merging