problem with buildGraph
testing buildGraph