fixing random variable