starting to debug the output and distancefilter