add hashes to ids