addng functions for calculating checksums for blocks