catch undefined var