# Local draggable variables in Eventblock

**URL:** https://forum.makecode.com/t/local-draggable-variables-in-eventblock/33979
**Category:** micro:bit
**Created:** [February 19, 2025, 6:08pm UTC](https://forum.makecode.com/t/local-draggable-variables-in-eventblock/33979 "2025-02-19T18:08:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mpoelzl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mpoelzl/32/17062_2.png) [@mpoelzl](https://forum.makecode.com/u/mpoelzl)
#### Post date: [February 19, 2025, 6:08pm UTC](https://forum.makecode.com/t/local-draggable-variables-in-eventblock/33979/1 "2025-02-19T18:08:37Z")

</div>

Hello!  
I’ve created the following event handler block in my extension:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/0/708a22a17411fb8ebcd24336a6e21d8f658aa6eb.png)

The question I have is, why are the two variables globally scoped (with the drop down and added to the list of project variables)? And how can I make them local to just this block? I seem to remember a few blocks like this which all seem to be local… Here is the code:

```auto
    //% weight=60
    //% block="Classification Changed"
    //% draggableParameters = reporter
    //% color=#00B1ED
    //% blockGap=8
    export function onClassificationChanged(handler: (predictionName: string, score: number) => void) {
        onClassificationChangedHandler = handler;
    }

```

Any help would be much appreciated, thank you!

---

<div class="post-metadata">

### Author: ![mpoelzl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mpoelzl/32/17062_2.png) [@mpoelzl](https://forum.makecode.com/u/mpoelzl)
#### Post date: [February 21, 2025, 7:40pm UTC](https://forum.makecode.com/t/local-draggable-variables-in-eventblock/33979/2 "2025-02-21T19:40:22Z")

</div>

And a follow up question 🙂:  
Is it possible to localise these draggable parameters into another language?  
Thanks!
