clean_table function added.  all correct now.