removing patch in core_template.c