generator.cc