better filtering for fuzzy edges