updating thread