resolve vars