spatial indexing added