update gesture recognition.