refine to terminus filtering