more work on IR graph