replaces generator initializer