# Mod switch on fresh ciphertext

**URL:** https://openfhe.discourse.group/t/mod-switch-on-fresh-ciphertext/1544
**Category:** FHE Questions
**Created:** [September 8, 2024, 1:01pm UTC](https://openfhe.discourse.group/t/mod-switch-on-fresh-ciphertext/1544 "2024-09-08T13:01:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![narger](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/narger/32/420_2.png) [@narger](https://openfhe.discourse.group/u/narger)
#### Post date: [September 8, 2024, 1:01pm UTC](https://openfhe.discourse.group/t/mod-switch-on-fresh-ciphertext/1544/1 "2024-09-08T13:01:10Z")

</div>

Hello there,

I am trying to study the BGV scheme as described in [your implementation](https://eprint.iacr.org/2021/204), in particular I tried to implement a toy modulus switching. Given a ciphertext with an error bound B^2, the idea is to scale it down by a factor B.

Nevertheless, while playing around, I was thinking about this: is there something preventing me to perform a mod switch on a fresh ciphertext? Theoretically is should scale the error B by a factor 1/B, almost removing the original error.

What am I missing? Thank you!!

---

<div class="post-metadata">

### Author: ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)
#### Post date: [September 8, 2024, 10:18pm UTC](https://openfhe.discourse.group/t/mod-switch-on-fresh-ciphertext/1544/2 "2024-09-08T22:18:18Z")

</div>

Hi @narger,

This is already done in the FLEXIBLEAUTOEXT mode of BGV by default. The error B is reduced to the modulus switching error in this case. Please see Section 4 of [https://eprint.iacr.org/2021/204](https://eprint.iacr.org/2021/204) for more details.
