can update the graph values