function of snapshot and snapshot_small finished