some graph work