grid dimensions were swapped