renamed types to templates
renamed getTypes operation to getTemplates