working on graph