replace sdCutoff with sdThreshold as in other functions