changed templateFile() to getTemplateFile()