minor change - lookup in queryIndex