minor changes to thread