few changes in rng