added functionality for recognizing