ctemplate update