better structuring of drawing code