remove undefined variable