adding in randomizer code