# Question about CKKS scheme oprations

**URL:** <https://openfhe.discourse.group/t/question-about-ckks-scheme-oprations/1614>\
**Category:** Library Questions\
**Tags:** bugs, openfhe-help\
**Created:** [October 1, 2024, 1:20pm UTC](https://openfhe.discourse.group/t/question-about-ckks-scheme-oprations/1614 "2024-10-01T13:20:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![andreea.alexandru](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/andreea.alexandru/32/378_2.png) [@andreea.alexandru](https://openfhe.discourse.group/u/andreea.alexandru)\
**Post date:** [October 3, 2024, 9:14pm UTC](https://openfhe.discourse.group/t/question-about-ckks-scheme-oprations/1614/4 "2024-10-03T21:14:10Z")

</div>

The problem is that you are creating a depleted plaintext when you do

```auto
Plaintext ptxt = cryptoContext->MakeCKKSPackedPlaintext(x, 1, depth - 1);

```

but then you perform a multiplication, leaving only the last limb. Then on this last limb you do further operations. However you set firstMod to be only one bit larger than dcrtBits, which leaves very little room for the magnitude of the message, see [EvalAdd does not add in some cases - #7 by ypolyakov](https://openfhe.discourse.group/t/evaladd-does-not-add-in-some-cases/517/7). You can try adding 0.1 instead of 4.0 and see a correct result.  
You can also change dcrtBits to 55 bits and you will get a correct value even when adding 4.  
Finally, if you are not immediately performing bootstrapping, then you should do at least  
`Plaintext ptxt = cryptoContext->MakeCKKSPackedPlaintext(x, 1, depth - 2) ` if you do not want to worry about the magnitude of the message.

---

_[View the full topic](https://openfhe.discourse.group/t/question-about-ckks-scheme-oprations/1614)._
