snapshotting example