snapshot before sleep