fixed the type of the 2D array