update decrypt method