Maybe, you can use MOD to avoid using annoying `if-else`