added user control of threshold to damage quant