added funcname custumization in template