added mapping parameter to draw function