changed threshold logic from greater than to greater than or equal to