prepare for randomizing group effect