converting the list to table