working on the graph