made some changes in flat_table1 methods