handle undefined variables