update before sleeping

update before sleeping