removed distanceFilterCalculation function