changed thresh values to be over mean