modified the graph