fix data generation method