renamed resolve-var to resolve-sym