removed TEMPLATE_SWITCH