unable to detect undefined names

unable to detect undefined names