exporting reset plot function