fixed randomization of ordering