second attempt at distrib