methods for getting columns and rows