add table and fix errors