improve spatial queries