reverting to old p thresh method
fixed floating comparison error in hc thresh