added drawFigures