add generator for initializer