changes related to peakdetection