modify thread classes