new filter logic added to details query, too