using switch from vel to stdDev for noise reduction