further work on data for graph