last changes before sleeping