randomize by groups
cleanup