corrected checksum and optimized storage