connect new data generation code