ugliness to get row and col headers