# Issue regarding EventSlotsUsed in VoiceIntentsExample ML2

**URL:** <https://forum.magicleap.cloud/t/issue-regarding-eventslotsused-in-voiceintentsexample-ml2/1772>\
**Category:** Unity Development\
**Tags:** development, unity\
**Created:** [April 21, 2023, 1:37pm UTC](https://forum.magicleap.cloud/t/issue-regarding-eventslotsused-in-voiceintentsexample-ml2/1772 "2023-04-21T13:37:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.reality](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@a.reality](https://forum.magicleap.cloud/u/a.reality)\
**Post date:** [April 21, 2023, 1:37pm UTC](https://forum.magicleap.cloud/t/issue-regarding-eventslotsused-in-voiceintentsexample-ml2/1772/1 "2023-04-21T13:37:29Z")

</div>

**Unity Editor version** : 2022.2.3f1  
**ML2 OS version** : 1.2.0-dev2 (secure)  
**Host OS** : Windows

Hello,

we have an issue regarding the use of EventSlots in the VoiceIntentsExample of the ML2.

In general, we would like to work with multiple EventSlots (arguments) within one spoken sentence.

We tried to use the following line of Code of the VoiceIntentsExample that should output all EventSlots used in one voiceIntent (their SlotName and SlotValue):

_strBuilder.AppendJoin("\n",voiceEvent.EventSlotsUsed.Select(v =\> $"Name: {v.SlotName} - Value: {v.SlotValue}"));_

However, in doing so, the last SlotValue becomes the next SlotName and so on.

Is it supposed to be like that? If yes, is there an alternative method to return all used EventSlots as a list with SlotName and SlotValue?

We provided an example.

 ![PossibleVoiceIntents](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/9bdb5dd3c1406fe34b9c2a8a520b4b92324d53a8.jpeg)

 ![CodeVoiceExample](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/065b00b44be608ebb9fd14c53faa106d7329fda7.jpeg)

**Test 1**  
Our desired output should be:

SlotName0: Test1  
SlotValue0: Tree  
SlotName1: Test2  
SlotValue1: Bird

Output is:  
 ![FirstExample1](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/30aa3dad77e82c1ff88a76611e4f272b705dd98a.jpeg)

![FirstExample2](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/54e3692b44324d04fac949c91e4f4e7f2df52afd.jpeg)

**Test 2**  
Our desired output should be:

SlotName0: Color  
SlotValue0: Red  
SlotName1: Shape  
SlotValue1: Circle  
SlotName2: Value  
SlotValue2: 1

Output is:  
 ![SecondExample1](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/5a88c0aea8ed22e6a7811bf5ed7e2d6225cdb2db.jpeg)

![SecondExample2](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/ba0fe179a3abe7303c61bf255a2449380b080625.jpeg)

Thank you very much in advance!

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [April 25, 2023, 8:28pm UTC](https://forum.magicleap.cloud/t/issue-regarding-eventslotsused-in-voiceintentsexample-ml2/1772/2 "2023-04-25T20:28:29Z")

</div>

Thank you for your post @a.reality. Let me dive into this and report back tomorrow. Thanks for your patience.
