remove checking of undefined variable