remove undeclared var usage