add max >= data.length
merge
merge