add xvar
Merge pull request #101 from longshanksmo/bug/xvar

add xvar