shuffling variables to the worker