add the drawing function