changed data structure to include chksum