changed deffinition of worker