updated the tablecreation