update the document as well as the figures.