converted FuncMap to initialize to template.FuncMap