add threshold in recordingGestures