reference correct var