fixes randomization error

because there is a set of variables