add code to fetch the column number in the table