actually adding template-generated code