add method recognizeObjects