simplify hashing