modify the graph creator