edited filtering of peaks