updated the plotting scripts