finished get_decryption function