updating @var reference