thread class update