added support for ignoring points that are outside the bounding box