fix to table structure