placed the processes data generation code in its own module