maps out rows and columns