setting thread's sleep at 30ms