made the randomizer work