modified the sample data generator