changed script and fig for plot1 and plot2