updating the worker