clean up rng