add a snapshot.