added fastFilteredDistance