remove duplicate Thread.sleep