remove undefined variable notice