moved aggregate data out of graph for re-use
updating version