update and figure