change character_array to 2d