added method getTemplates