remove sleep func