before I start refactoring, and splitting up the drawgraph so it can be used throughout