updated the graph