trying to get a query to work