edited form of regions/show_peaks