seperated the synhetic uniform data generation code