modify threadwork