recognizer code