changes on matching defined distributions
changes on replacing rvs with their sampled vals