changed list to a table