updating example for snapshot