added method to draw function with background and re-substituition