# What is the logic behind the automated rewrite in the expression editor?

**URL:** https://community.tulip.co/t/what-is-the-logic-behind-the-automated-rewrite-in-the-expression-editor/7850
**Category:** Support, Troubleshooting, & Help
**Created:** [March 15, 2023, 1:48pm UTC](https://community.tulip.co/t/what-is-the-logic-behind-the-automated-rewrite-in-the-expression-editor/7850 "2023-03-15T13:48:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sebme](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@sebme](https://community.tulip.co/u/sebme)
#### Post date: [March 15, 2023, 1:48pm UTC](https://community.tulip.co/t/what-is-the-logic-behind-the-automated-rewrite-in-the-expression-editor/7850/1 "2023-03-15T13:48:04Z")

</div>

I just need some simple substraction but Tulip will always rewrite my expression into this convoluted mess…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/6/62e194804653e6ba63fa43c38b392db89aa454e9.png)

Why?

---

<div class="post-metadata">

### Author: ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)
#### Post date: [March 15, 2023, 2:49pm UTC](https://community.tulip.co/t/what-is-the-logic-behind-the-automated-rewrite-in-the-expression-editor/7850/2 "2023-03-15T14:49:57Z")

</div>

Hi @sebme,

what is the original you typed in, which is messed up?  
What I see:

- there is no need for parenthesis a-b-c is the same as ((a-b)-c)
- the editor always removes all line breaks and double white spaces
- the Names are just longer than the width of the editor; thats why it adds the word wraps. It tries to break at a white space (after “Table”) but if not possible it just breaks in the middle of the word.

you are actually doing a check if `a - b - c - d - e not equals 0`  
It is also the same as `a != b + c + d + e`

What the Expression editor does is only cosmetically bad. I

If there is more that that, you should shere your input (how you expect it).

---

<div class="post-metadata">

### Author: ![sebme](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@sebme](https://community.tulip.co/u/sebme)
#### Post date: [March 15, 2023, 3:15pm UTC](https://community.tulip.co/t/what-is-the-logic-behind-the-automated-rewrite-in-the-expression-editor/7850/3 "2023-03-15T15:15:43Z")

</div>

That is a good one right there: **there is no need for parenthesis**.

But that is exactly what the editor makes out of it after it is saved.

What I originally entered was: `a-b-c-d-e != 0`
