add a query in therey