renamed arg saveTable as save_table in save_plot function