use location for query