implementing createThreadsForRecognition