process spatial hash, rm dead code here..
rm dead code