add std dev threshold