calltemplate to compile