improved gesture recognition