script for data generator