added function getColumns()