get the right varname