slight change in workerthread