added nolocationfound clause
just find top query (no iteration needed)