delete sleep in thread