moved distribution to util package