added in thresholding option to customize the limits on gathering