update xtemplate