working on removing threads