made table creation code simple.