changed script for Plot1 and fig