replacing generator_C