updated util with fix to sample_discrete(1)