changed checksum from array to ArrayList