changed random sleep in txThread