snapshot to commit