changed refVar to refVarName