distribution detection