working on graph version