reference the correct variable