updated export_fig