more spatial hashing stuff