more improvement

in some cases, we could remove the template keyword from
a function template decl