using contigouus vector now for checksum calculation otherwise things are messed up somehow