general cleanup of randomness