distribution of tasks