added a generator to the mod