working, but ciphertext needs to be modified