updated to customer request for template id