last update before sleep