fixing non-randomness