working on graph.fit