handle undefined