changed threshold from 100 to 99.95 to avoid overrounding