swapped read of rows and columns