before restructuring graph data