updated structure for loading graph data