modification on createTable