remove ref to undeclared var