added encoding for reporting