update both figures