put generate(data, index) into base PathDataGenerator class