done with graph, testing it