fixed hard-wired createTable()