clean up undeclared variable