added checksum to storeData()