before the distribution work