avoid reference to undefined var