update table
fix errors