added logic to read the decoded content