thresholds and document