don't call get_varname that often