run iterations in worker thread