remove duplicate checksum calculation