corrected lookupvars