added distance filter