finds distribution