fixed recognize.py