updated the plot