update gesture recognition