remove unnecessary thread