added new parameter to TemplateField.php