got a query to work