fixed bug with not recognizing