"added  hook_templates function"