added recursive call to draw function