prototype for createTable working