before randomness