add distance filter limit function