table2flat