changing the graph