use serialized data for hashing