# Change node issue

**URL:** <https://discourse.nodered.org/t/change-node-issue/6497>\
**Category:** General\
**Created:** [7 January 2019 11:17 UTC](https://discourse.nodered.org/t/change-node-issue/6497 "2019-01-07T11:17:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dezral/32/5007_2.png) [@dezral](https://discourse.nodered.org/u/dezral)\
**Post date:** [7 January 2019 11:17 UTC](https://discourse.nodered.org/t/change-node-issue/6497/1 "2019-01-07T11:17:28Z")

</div>

I have this issue i can't make the CHANGE node "SET" a sub msg name like "msg.payload.brightness" it works with "msg.brightness".

can't either move anything to "msg.payload.brightness".. is it a new thing? or me ;-).

anything else with CHANGE node works..

does i need to make a function to do this?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 January 2019 11:41 UTC](https://discourse.nodered.org/t/change-node-issue/6497/2 "2019-01-07T11:41:23Z")

</div>

It will depend on what `msg.payload` is to begin with.

If its an Object, then you can set any properties you want on it.

If its a String or a Number, you cannot set properties on it - a JavaScript restriction.

So the question is what is your `msg.payload` set to when its passed to the Change node?

---

<div class="post-metadata">

**Author:** ![dezral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dezral/32/5007_2.png) [@dezral](https://discourse.nodered.org/u/dezral)\
**Post date:** [7 January 2019 12:03 UTC](https://discourse.nodered.org/t/change-node-issue/6497/3 "2019-01-07T12:03:41Z")

</div>

ohh okay thanks for clarifying..
