work on thread removal