refine erssical constraint on xtmpl