change the structure of timer sleep