resolve var issue