added a query iterated over