modify Thread Class