trying to figure out how to update the plot