working on graph part