avoid use of undefined var