update worker takes one parameter