more work on graph