clear code and change the decrement of value to make it even