change create table method