compute fingerprints