now building a graph