added try and catch to decipher block