better spatial hashing