made randomisation work for mod changes