hacked out the rng problems that dominated runtime