rename timer to sleep
change func name timer to sleep