the worker now calles the run function