new script for plot and final png files