changed make_table function and associated tests