resize thresholds