pre-filter out high depth before grouping