change to thread mode