serializing dsd similarity