add peakdetect