updates to graph