changed randomization