update generation of data for graphs;