update snapshot.