```js function setState(actor, state, hp, success, failure){ actor.update({ "flags.dc-death-wish": {state: state}, // todo fix string instead of number "data.attributes": {hp: {value: hp}, death: {success: success, failure: failure}} }); } ``` no need to use a string template, you can simply pass the value as it is directly into these fields