add recognizer cpp