worked on make_table function