modify thread task