some small updates on the spatial queries