array2D is a 2D array and you are adding it like 1D.