completed findPeak