implemented automatic sample data generation