filter_on_border() method done.