added motion recog.