single process to get the peaks
single process to get the peaks