successfully filters by distance
removed unneccessary vars for distance filtering