changed script and fig for plot1