fix multinom sampling
solve conflict